# Generated by Django 4.2.1 on 2023-05-17 00:50

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('human_dossier', '0001_initial'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='additionaldatahuman',
            name='is_unemployed',
        ),
        migrations.RemoveField(
            model_name='human',
            name='gender',
        ),
        migrations.AddField(
            model_name='additionaldatahuman',
            name='gender',
            field=models.CharField(choices=[('F', 'Female'), ('M', 'Male'), ('O', 'Other')], default=1, max_length=1, verbose_name='Пол'),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='action',
            name='date',
            field=models.DateTimeField(auto_now=True, verbose_name='Дата'),
        ),
        migrations.AlterField(
            model_name='additionaldatahuman',
            name='human',
            field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='additional_data', to='human_dossier.human', verbose_name='Человек'),
        ),
        migrations.AlterField(
            model_name='placeofresidence',
            name='owner',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='addresses', to='human_dossier.human', verbose_name='Владелец'),
        ),
        migrations.AlterField(
            model_name='placeofresidence',
            name='postal_code',
            field=models.PositiveIntegerField(verbose_name='Почтовый индекс'),
        ),
        migrations.CreateModel(
            name='Employment',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('is_unemployed', models.BooleanField(blank=True, null=True, verbose_name='Безработный')),
                ('human', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='employment', to='human_dossier.human', verbose_name='Человек')),
            ],
        ),
    ]
